package cn.stylefeng.guns.modular.storage.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 库存流水
 */
@TableName("storage_stock_detailed")
@Data
public class StorageStockDetailed implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 库存id
     */
    @TableField("stock_id")
    private Long stockId;

    /**
     * 业务名称
     */
    @TableField("operation")
    private String operation;

    /**
     * 单号
     */
    @TableField("order_number")
    private String orderNumber;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 仓库名称
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 库区id
     */
    @TableField("area_id")
    private Long areaId;

    /**
     * 库区名称
     */
    @TableField("area_name")
    private String areaName;

    /**
     * 库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 托盘id
     */
    @TableField("tray_id")
    private Long trayId;

    /**
     * 托盘编号
     */
    @TableField("tray_number")
    private String trayNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 单位
     */
    @TableField("goods_unit")
    private String goodsUnit;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 入库批次
     */
    @TableField("put_time")
    private String putTime;

    /**
     * 批次
     */
    @TableField("goodsbatchs")
    private String goodsbatchs;

    /**
     * 数量
     */
    @TableField("num")
    private String num;

    /**
     * 重量
     */
    @TableField("weight")
    private String weight;

    /**
     * 体积
     */
    @TableField("volume")
    private String volume;

    /**
     * 金额
     */
    @TableField("money")
    private String money;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人员
     */
    @TableField("create_name")
    private String createName;

    /**
     * 创建用户
     */
    @TableField("create_account")
    private String createAccount;

    @Override
    public String toString() {
        return "StorageStockDetailed{" +
        "id=" + id +
        ", stockId=" + stockId +
        ", operation=" + operation +
        ", orderNumber=" + orderNumber +
        ", type=" + type +
        ", content=" + content +
        ", warehouseId=" + warehouseId +
        ", warehouseName=" + warehouseName +
        ", areaId=" + areaId +
        ", areaName=" + areaName +
        ", positionId=" + positionId +
        ", positionNumber=" + positionNumber +
        ", trayId=" + trayId +
        ", trayNumber=" + trayNumber +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsUnit=" + goodsUnit +
        ", goodsSpecs=" + goodsSpecs +
        ", goodsbatchs=" + goodsbatchs +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
        ", createTime=" + createTime +
        ", createName=" + createName +
        ", createAccount=" + createAccount +
        "}";
    }
}
